all: dot2images gen


dot2images:
	@echo "Converting graphviz (.dot) to images (.png)"
	@find ./content -name *.dot -exec sh -c 'echo $${0} && dot -Tpng $${0} > $${0%.dot}.png' {} \;
	@echo ""

gen:
	@echo "Generating contents"
	@hugo
	@echo ""

localserver:
	@echo "Running local server at http://127.0.0.1:2333"
	hugo server -p 2323
